package com.ibeeking.found.common.enums.cs;


/**
 * 客诉处理优先级
 */
public enum CustomerSupportOrderLevelEnum {


    LOW(1, "低"),
    MIDDLE(2, "中"),
    HIGH (3,"高"), ;


    private Integer code;

    private String name;

    public Integer getCode(){
        return this.code;
    }

    public String getName(){
        return this.name;
    }


    CustomerSupportOrderLevelEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static CustomerSupportOrderLevelEnum getEnum(Integer code){
        for (CustomerSupportOrderLevelEnum enums : values()){
            if(enums.code.equals(code)){
                return enums;
            }
        }
        return null;
    }

}
